home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Documents / NeXTAnswers / appkit.497 < prev    next >
Text File  |  1992-02-06  |  950b  |  30 lines

  1. {\rtf0\ansi{\fonttbl\f2\fnil Times-Roman;\f1\fmodern Courier;}
  2. \paperw12820
  3. \paperh5320
  4. \margl120
  5. \margr120
  6. \pard\tx1140\tx2300\tx3440\tx4600\tx5760\tx6900\tx8060\tx9200\tx10360\tx11520\f2\b0\i0\ul0\fs28 register window workspace speaker listener\
  7. \
  8. Q:  I want to drag icons from the Workspace browser into a window in my application.  How do I set this up?\
  9. \
  10. A:  Here's the code you need:\
  11. \
  12. \
  13.       unsigned int       globalWindowNumber;\
  14.       \
  15.       NXConvertWinNumToGlobal([theWindow windowNum], &globalWindowNumber);\
  16.       [[self appSpeaker] registerWindow:globalWindowNumber\
  17.             toPort:[[self appListener] listenPort]];\
  18. \
  19. \
  20. Q:  I tried this and it still doesn't work.\
  21. \
  22. A:  Is theWindow deferred, and if so, has it been brought onscreen?  Deferred windows don't have PostScript windows associated with them until their first orderFront:;  with no PostScript window, windowNum returns zero.\
  23. \
  24. QA497            \
  25. \
  26. Valid for 1.0\
  27. Valid for 2.0\
  28. \
  29.  
  30.